﻿<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> 
<%@ Page Language="C#" Inherits="Microsoft.SharePoint.ApplicationPages.UserRoles" MasterPageFile="~/_layouts/application.master"      %> 
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="wssuc" TagName="ActionBar" src="~/_controltemplates/ActionBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="secTree" TagName="SecurityTree" Src="~/_controltemplates/ssmu/SecurityTree.ascx"%>
<%@ Import Namespace= "Microsoft.SharePoint.ApplicationPages" %>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
	<asp:Literal ID="litPageTitle" RUNAT=Server/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
<script Language="javascript">
var L_NothingDelete_TEXT = "<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,user_NothingDelete_TEXT%>' EncodeMethod='EcmaScriptStringLiteralEncode'/>";
var L_ConfirmRemove_TEXT = "<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,user_ConfirmRemove_TEXT%>' EncodeMethod='EcmaScriptStringLiteralEncode'/>";
var L_NothingEdit_TEXT = "<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,user_NothingEdit_TEXT%>' EncodeMethod='EcmaScriptStringLiteralEncode'/>";
var L_MultipleUsers_TEXT = "<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,user_ConfirmRemoveMultiple_TEXT%>' EncodeMethod='EcmaScriptStringLiteralEncode'/>";
var cSelectedEntries = 0;
var strAclObject = <% SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(SPHttpUtility.UrlKeyValueEncode(StrAclObj())),Response.Output);%>;
function GrantAccess()
{
	var aclinvUrl =
		<%SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(CUtil.StrGetWebRelativePath(this)),Response.Output);%> + "aclinv.aspx?obj=" + strAclObject;
	STSNavigate(aclinvUrl);
}
function GetSelectedPrincipals()
{
	cSelectedEntries = 0;
	var value = new Object();
	value.strIds = "";
	value.strNames = "";
	var form = document.forms.<%SPHttpUtility.NoEncode(Form.ClientID,Response.Output);%>;
	var elemId = form.PrincipalId;
	var elemName = form.PrincipalName;
	if (elemId == null)
		return value;
	var len = elemId.length;
	if (len == null)
	{
		if  (elemId.checked)
		{
			++cSelectedEntries;
			value.strIds = elemId.value;
			value.strNames = elemName.value;
		}
	}
	else
	{
		for (var i = 0; i < len ; i++)
		{
			if (elemId[i].checked)
			{
				if (cSelectedEntries != 0)
				{
					value.strIds += ",";
					value.strNames += ",";
				}
				value.strIds += elemId[i].value;
				value.strNames += elemName[i].value;
				++cSelectedEntries;
			}
		 }
	 }
	return value;
}
function inheritPerms()
{
	var warningText = <% SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(WarningStringToInherit),Response.Output); %>;
	if (confirm(warningText))
		setOperationAndSubmit("resetPermission");
}
function uniquePerms()
{
	var warningText = <% SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(WarningStringToUnique),Response.Output); %>;
	if (confirm(warningText))
		setOperationAndSubmit('copyPermission');
}
function setOperationAndSubmit(operation)
{
	document.getElementById(<%SPHttpUtility.AddQuote(SPHttpUtility.NoEncode(hdnOperation.ClientID),Response.Output);%>).value = operation;
	document.forms.<%SPHttpUtility.NoEncode(Form.ClientID,Response.Output);%>.submit();
}
function deluser()
{
	var selectedPrincipals = GetSelectedPrincipals();
	var strPrincipalIds = selectedPrincipals.strIds;
	var strPrincipalNames = selectedPrincipals.strNames;
	if (strPrincipalIds == "")
	{
		alert(L_NothingDelete_TEXT);
		return;
	}
	var objectDisplayName = '<SharePoint:EncodedLiteral runat="server" id="ObjectDisplayName" EncodeMethod="EcmaScriptStringLiteralEncode"/>';
	var msg = (cSelectedEntries == 1) ?
		StBuildParam(L_ConfirmRemove_TEXT, objectDisplayName) + "\n" + unescapeProperly(strPrincipalNames) :
		StBuildParam(L_MultipleUsers_TEXT, objectDisplayName);
	if (confirm(msg))
	{
		document.getElementById(<%SPHttpUtility.AddQuote(SPHttpUtility.NoEncode(hdnPrincipalsToDelete.ClientID),Response.Output);%>).value = strPrincipalIds;
		document.getElementById(<%SPHttpUtility.AddQuote(SPHttpUtility.NoEncode(hdnOperation.ClientID),Response.Output);%>).value = "deleteUser";
		document.forms.<%SPHttpUtility.NoEncode(Form.ClientID,Response.Output);%>.submit();
	 }
}
function EditRolesForSelectedUsers()
{
	var selected = GetSelectedPrincipals();
	var ids = selected.strIds;
	return EditRoles(ids);
}
function EditRoles(principalIds)
{
	if (principalIds == "")
	{
		alert(L_NothingEdit_TEXT);
		return;
	}
	var editPrmsUrl =
		<%SPHttpUtility.AddQuote(SPHttpUtility.EcmaScriptStringLiteralEncode(CUtil.StrGetWebRelativePath(this)),Response.Output);%> +
		"editprms.aspx?obj=" +
		strAclObject +
		"&sel=" + escapeProperly(principalIds);
	STSNavigate(editPrmsUrl);
}
function SelectAll()
{
	for (var i=0; i < document.forms.<%=Form.ClientID%>.elements.length;i++)
	{
	var e = document.forms.<%=Form.ClientID%>.elements[i];
	if (e.name != 'selectall')
	  e.checked = document.forms.<%=Form.ClientID%>.selectall.checked;
	}
}
</script>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
	<asp:Label ID="lbPageTitleInTitleArea" Visible="true" RUNAT=Server/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescriptionRowAttr" runat="server">
style="display:none;"
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescriptionRowAttr2" runat="server">
style="display:none;"
</asp:Content>
<asp:Content ContentPlaceHolderId ="PlaceHolderTitleLeftBorder" runat="server">
 <div class="ms-titleareaframe"><IMG SRC="/_layouts/images/blank.gif" width=1 height=100% alt=""></div>
</asp:Content>
<asp:Content ContentPlaceHolderId ="PlaceHolderTitleRightMargin" runat="server">
 <div style="height:100%;" class="ms-titleareaframe"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></div>
</asp:Content>
<asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
 <div style="height:100%;" class="ms-pagemargin"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></div>
</asp:Content>
<asp:Content ContentPlaceHolderId ="PlaceHolderBodyRightMargin" runat="server">
 <div style="height:100%;" class="ms-pagemargin"><IMG SRC="/_layouts/images/blank.gif" width=10 height=1 alt=""></div>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">ms-pagetitleareaframe</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">ms-viewareaframe</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server">
<div class="ms-quicklaunchouter">
	<div class="ms-quickLaunch" style="width:100%">
	    <table class="ms-navSubMenu1" cellpadding="0" cellspacing="0" border="0">
			<tr>
			  <td>
				<table class="ms-navheader" width="100%" cellpadding="0" cellspacing="0" border="0">
				  <tr>
					<td nowrap id="Td1">
					  <SharePoint:SPLinkButton runat="server" NavigateUrl="ssmu_editSecurity.aspx" id="secTreeLinkButton" Text="<%$Resources:ssmu.Resources,treeview_header%>" AccessKey="<%$Resources:wss,quiklnch_allcontent_AK%>"/>
					</td>
				  </tr>
				</table>
			  </td>
			</tr>
			<tr>
			    <td>
			        <a href="ssmu_editSecurity.aspx" title='<asp:Literal ID="Literal1" runat="server" Text="<%$Resources:ssmu.Resources,editSecurity_pagetitle%>" />'>
			            <img border="0" src="/_layouts/images/ssmu/editOne.gif" /></a>
			        <a href="ssmu_bulkEditSecurity.aspx" title='<asp:Literal ID="Literal2" runat="server" Text="<%$Resources:ssmu.Resources,bulkEditSecurity_pagetitle%>" />'>
			            <img border="0" src="/_layouts/images/ssmu/editMany.gif" /></a>
			        <a href="ssmu_resetInheritance.aspx" title='<asp:Literal ID="Literal3" runat="server" Text="<%$Resources:ssmu.Resources,resetInheritance_pagetitle%>" />'>
			            <img border="0" src="/_layouts/images/ssmu/many.gif" /></a>
			    </td>
			</tr>

		  </table>
	    <div class="ms-treeviewouter">
            <secTree:SecurityTree ShowCheckBoxes=false EnableNavigationUrl=true runat="server" id="SecurityTree"></secTree:SecurityTree>
        </div>
    </div>
</div>
<br />
<% if (bShowLeftNav) { %>
	<div class="ms-quicklaunchouter">
	<div class="ms-quickLaunch" style="width:100%">
	<asp:Menu
		id="MenuQuickLaunch"
		runat="server"
		Orientation="Vertical"
		StaticDisplayLevels="2"
		ItemWrap="true"
		MaximumDynamicDisplayLevels="0"
		SkipLinkText=""
		StaticSubMenuIndent="0">
		<LevelMenuItemStyles>
			<asp:MenuItemStyle CssClass="ms-navheader"/>
			<asp:MenuItemStyle CssClass="ms-navitem"/>
		</LevelMenuItemStyles>
		<LevelSubMenuStyles>
			<asp:SubMenuStyle CssClass="ms-navSubMenu1"/>
			<asp:SubMenuStyle CssClass="ms-navSubMenu2"/>
		</LevelSubMenuStyles>
		<LevelSelectedStyles>
			<asp:MenuItemStyle CssClass="ms-selectednavheader"/>
			<asp:MenuItemStyle CssClass="ms-selectednav"/>
		</LevelSelectedStyles>
		<Items>
			<asp:MenuItem Text="<%$Resources:wss,people_groups%>" NavigateUrl="groups.aspx" >
				<asp:MenuItem Text="<%$Resources:wss,multipages_more%>" NavigateUrl="groups.aspx"/>
			</asp:MenuItem>
			<asp:MenuItem Text="<%$Resources:wss,people_allpeople%>" NavigateUrl="people.aspx?MembershipGroupId=0&FilterField1=ContentType&FilterValue1=Person"/>
			<asp:MenuItem Text="<%$Resources:wss,people_sitepermissions%>" NavigateUrl="ssmu_editSecurity.aspx"/>
		</Items>
	</asp:Menu>
	</div>
	</div>
	<table border=0 cellspacing=0 cellpadding=0><tr height=5px><td/></tr></table>
				<div class="ms-quicklaunchouter">
				<div class="ms-quickLaunch" style="width:100%">
				<h3 class="ms-standardheader"><label class="ms-hidden"><SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,quiklnch_pagetitle%>" EncodeMethod="HtmlEncode"/></label>
				<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="ViewFormPages">
				<div class="ms-quicklaunchheader"><SharePoint:SPLinkButton id="idNavLinkViewAll" runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" Text="<%$Resources:wss,quiklnch_allcontent%>" AccessKey="<%$Resources:wss,quiklnch_allcontent_AK%>"/></div>
				</SharePoint:SPSecurityTrimmedControl>
				</h3>
				<Sharepoint:SPNavigationManager
				id="QuickLaunchNavigationManager"
				runat="server"
				QuickLaunchControlId="QuickLaunchMenu"
				ContainedControl="QuickLaunch"
				EnableViewState="false"
				>
				<div>
					<SharePoint:DelegateControl runat="server"
						ControlId="QuickLaunchDataSource">
					 <Template_Controls>
						<asp:SiteMapDataSource
						SiteMapProvider="SPNavigationProvider"
						ShowStartingNode="False"
						id="QuickLaunchSiteMap"
						StartingNodeUrl="sid:1025"
						runat="server"
						/>
					 </Template_Controls>
					</SharePoint:DelegateControl>
					<SharePoint:AspMenu
					id="QuickLaunchMenu"
					DataSourceId="QuickLaunchSiteMap"
					runat="server"
					Orientation="Vertical"
					StaticDisplayLevels="2"
					ItemWrap="true"
					MaximumDynamicDisplayLevels="0"
					StaticSubMenuIndent="0"
					SkipLinkText=""
					>
					<LevelMenuItemStyles>
						<asp:MenuItemStyle CssClass="ms-navheader"/>
						<asp:MenuItemStyle CssClass="ms-navitem"/>
					</LevelMenuItemStyles>
					<LevelSubMenuStyles>
						<asp:SubMenuStyle CssClass="ms-navSubMenu1"/>
						<asp:SubMenuStyle CssClass="ms-navSubMenu2"/>
					</LevelSubMenuStyles>
					<LevelSelectedStyles>
						<asp:MenuItemStyle CssClass="ms-selectednavheader"/>
						<asp:MenuItemStyle CssClass="ms-selectednav"/>
					</LevelSelectedStyles>
				</SharePoint:AspMenu>
				</div>
				</Sharepoint:SPNavigationManager>
				<Sharepoint:SPNavigationManager
				id="TreeViewNavigationManager"
				runat="server"
				ContainedControl="TreeView"
				>
				  <table class="ms-navSubMenu1" cellpadding="0" cellspacing="0" border="0">
					<tr>
					  <td>
						<table class="ms-navheader" width="100%" cellpadding="0" cellspacing="0" border="0">
						  <tr>
							<td nowrap id="idSiteHierarchy">
							  <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/_layouts/viewlsts.aspx" id="idNavLinkSiteHierarchy" Text="<%$Resources:wss,treeview_header%>" AccessKey="<%$Resources:wss,quiklnch_allcontent_AK%>"/>
							</td>
						  </tr>
						</table>
					  </td>
					</tr>
				  </table>
				  <div class="ms-treeviewouter">
					<SharePoint:SPHierarchyDataSourceControl
					 runat="server"
					 id="TreeViewDataSource"
					 RootContextObject="Web"
					 IncludeDiscussionFolders="true"
					/>
					<SharePoint:SPRememberScroll runat="server" id="TreeViewRememberScroll" onscroll="javascript:_spRecordScrollPositions(this);" Style="overflow: auto;height: 400px;width: 150px; ">
					<Sharepoint:SPTreeView
						id="WebTreeView"
						runat="server"
						ShowLines="false"
						DataSourceId="TreeViewDataSource"
						ExpandDepth="0"
						SelectedNodeStyle-CssClass="ms-tvselected"
						NodeStyle-CssClass="ms-navitem"
						NodeStyle-HorizontalPadding="2"
						SkipLinkText=""
						NodeIndent="12"
						ExpandImageUrl="/_layouts/images/tvplus.gif"
						CollapseImageUrl="/_layouts/images/tvminus.gif"
						NoExpandImageUrl="/_layouts/images/tvblank.gif"
					>
					</Sharepoint:SPTreeView>
					</Sharepoint:SPRememberScroll>
				  </div>
				</Sharepoint:SPNavigationManager>
				<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr><td>
		<table class="ms-recyclebin" width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr><td nowrap>
		<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/_layouts/recyclebin.aspx" id="idNavLinkRecycleBin" ImageUrl="/_layouts/images/recycbin.gif" Text="<%$Resources:wss,StsDefault_RecycleBin%>" PermissionsString="DeleteListItems" />
		</td></tr>
		</table>
		</td></tr></table>
				</div>
				</div>
<div style="display:none;">
	<wssuc:ActionBar id="Actions" runat="server" HeaderText="<%$Resources:wss,viewlsts_seealso%>">
		<Template_Links>
			<asp:HyperLink Visible="false" id="linkSetAnon"      Text="<%$SPHtmlEncodedResources:wss,user_ChangeAnonymousAccess%>" runat="server"/>
			<asp:HyperLink Visible="false" id="linkSetReq"       Text="<%$SPHtmlEncodedResources:wss,user_ManageRequestAccess%>"  runat="server"/>
			<asp:HyperLink Visible="false" id="linkManageRoles"  Text="<%$SPHtmlEncodedResources:wss,user_ManageRoles%>" runat="server"/>
			<asp:HyperLink Visible="false" id="linkManageParent" Text="<%$SPHtmlEncodedResources:wss,user_ManageParentPermissions%>" runat="server"/>
			<asp:HyperLink Visible="false" id="linkSiteAdmin"    Text="<%$SPHtmlEncodedResources:wss,user_SiteCollectionAdmin%>" NavigateUrl="mngsiteadmin.aspx" runat="server"/>
		</Template_Links>
	</wssuc:ActionBar>
</div>
<% } %>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
	 <div class="ms-listdescription">
	  <table class="ms-descriptiontext" cellspacing="0" border="0">
		<tr><td><asp:Label ID="lbPageDescription" Visible="true" RUNAT=Server/></td></tr>
	  </table>
	 </div>
	<table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <TR>
		<TD ID=AddUserTextTDID1>
	<SharePoint:FeatureMenuTemplate id="MenuTemplateNew" LargeIconMode="TRUE" runat="server"
		Location="Microsoft.SharePoint.User"
		GroupId="NewMenu"
		>
		<SharePoint:MenuItemTemplate id="MenuItemAddUser" runat="server"
			Text="<%$Resources:wss,people_adduser%>"
			MenuGroupId="100"
			Sequence="100"
			/>
		<SharePoint:MenuItemTemplate id="MenuItemCreateNewGroup" runat="server"
			Text="<%$Resources:wss,people_createnewgroup%>"
			Description="<%$Resources:wss,people_createnewgroupdescription%>"
			MenuGroupId="200"
			Sequence="100"
			/>
	</SharePoint:FeatureMenuTemplate>
	<SharePoint:FeatureMenuTemplate id="MenuTemplateActions" LargeIconMode="TRUE" runat="server"
		Location="Microsoft.SharePoint.User"
		GroupId="ActionsMenu"
		>
		<SharePoint:MenuItemTemplate id="MenuItemRemoveUserPerm" runat="server"
			Text="<%$Resources:wss,people_removeuserperm%>"
			Description="<%$Resources:wss,people_removeuserpermdesc%>"
			ClientOnClickScript="deluser();"
			Visible=false
			MenuGroupId="100"
			Sequence="100"
			/>
		<SharePoint:MenuItemTemplate id="MenuItemEditUserPerm" runat="server"
			Text="<%$Resources:wss,people_edituserperm%>"
			Description="<%$Resources:wss,people_edituserpermdesc%>"
			ClientOnClickScript="EditRolesForSelectedUsers();"
			Visible=false
			MenuGroupId="100"
			Sequence="200"
			/>
		<SharePoint:MenuItemTemplate id="MenuItemInheritPermFromParent" runat="server"
			Text="<%$Resources:wss,people_inheritpermfromparent%>"
			Description="<%$Resources:wss,people_inheritpermfromparentdesc%>"
			ClientOnClickScript="inheritPerms();"
			Visible=false
			MenuGroupId="200"
			Sequence="100"
			/>
		<SharePoint:MenuItemTemplate id="MenuItemEditParenPerm" runat="server"
			Text="<%$Resources:wss,people_editparentperm%>"
			Description="<%$Resources:wss,people_editparentpermdesc%>"
			Visible=false
			MenuGroupId="300"
			Sequence="100"
			/>
		<SharePoint:MenuItemTemplate id="MenuItemCopyParenPerm" runat="server"
			Text="<%$Resources:wss,people_copyparentperm%>"
			Description="<%$Resources:wss,people_copyparentpermperm%>"
			Visible=false
			ClientOnClickScript="uniquePerms();"
			MenuGroupId="300"
			Sequence="200"
			/>
	</SharePoint:FeatureMenuTemplate>
	<SharePoint:FeatureMenuTemplate id="MenuTemplateSettings" LargeIconMode="TRUE" runat="server"
		Location="Microsoft.SharePoint.User"
		GroupId="SettingsMenu"
		>
		<SharePoint:MenuItemTemplate id="MenuItemSiteAdmins" runat="server"
			Text="<%$Resources:wss,people_siteadmins%>"
			Description="<%$Resources:wss,people_siteadminsdescription%>"
			ClientOnClickNavigateUrl="~site/_layouts/mngsiteadmin.aspx"
			Visible=false
			MenuGroupId="300"
			Sequence="100"
			/>
		<SharePoint:MenuItemTemplate id="MenuItemAccessRequest" runat="server"
			Text="<%$Resources:wss,people_accessrequest%>"
			Description="<%$Resources:wss,people_accessrequestdesc_site%>"
			Visible=false
			MenuGroupId="300"
			Sequence="200"
			/>
		<SharePoint:MenuItemTemplate id="MenuItemAnonAccess" runat="server"
			Text="<%$Resources:wss,people_anonaccess%>"
			Description="<%$Resources:wss,people_anonaccessdesc_site%>"
			Visible=false
			MenuGroupId="300"
			Sequence="300"
			/>
		<SharePoint:MenuItemTemplate id="MenuItemPermLevel" runat="server"
			Text="<%$Resources:wss,people_permlevel%>"
			Description="<%$Resources:wss,people_permleveldesc_site%>"
			ClientOnClickNavigateUrl="~site/_layouts/role.aspx"
			Visible=false
			MenuGroupId="300"
			Sequence="400"
			/>
 </SharePoint:FeatureMenuTemplate>
			<wssuc:ToolBar runat="server" id="ToolBar" CssClass="ms-menutoolbar">
				<Template_Buttons>
					<SharePoint:Menu id="MenuNew" runat="server"
						TemplateId = "MenuTemplateNew"
						Text="<%$Resources:wss,multipages_new_menu_text%>"
						MenuFormat="ArrowAlwaysVisible"
						MenuAlignment="Left"
						HoverCellActiveCssClass = "ms-menubuttonactivehover"
						HoverCellInActiveCssClass = "ms-menubuttoninactivehover"
						AccessKey = "<%$Resources:wss,tb_NewMenu_AK%>"
						/>
					<SharePoint:Menu id="MenuActions" runat="server"
						TemplateId = "MenuTemplateActions"
						Text="<%$Resources:wss,multipages_actions%>"
						MenuFormat="ArrowAlwaysVisible"
						MenuAlignment="Left"
						HoverCellActiveCssClass = "ms-menubuttonactivehover"
						HoverCellInActiveCssClass = "ms-menubuttoninactivehover"
						AccessKey = "<%$Resources:wss,tb_ActionsMenu_AK%>"
						/>
					<SharePoint:Menu id="MenuSettings" runat="server"
						TemplateId = "MenuTemplateSettings"
						Text="<%$Resources:wss,multipages_settings_menu_text%>"
						MenuFormat="ArrowAlwaysVisible"
						MenuAlignment="Left"
						HoverCellActiveCssClass = "ms-menubuttonactivehover"
						HoverCellInActiveCssClass = "ms-menubuttoninactivehover"
						AccessKey = "<%$Resources:wss,tb_SettingsMenu_AK%>"
						/>
				</Template_Buttons>
			 </wssuc:ToolBar>
			 <div style="display:none;">
			<wssuc:ToolBar id="onetidGrpsTB_root" runat="server" Visible="false">
				<Template_Buttons>
					<wssuc:ToolBarButton runat="server" Text="<%$Resources:wss,user_idAddMembers%>"
						id="idAddMembers_root"
						ToolTip="<%$Resources:wss,user_idAddMembers%>"
						NavigateUrl="javascript:GrantAccess()" ImageUrl="/_layouts/images/newuser.gif"
						AccessKey="N" />
					<wssuc:ToolBarButton runat="server"
						id="idDelMembers_root"
						Text="<%$Resources:wss,user_idDelMembers%>"
						ToolTip="<%$Resources:wss,user_idDelMembers%>"
						NavigateUrl="javascript:deluser()"
						ImageUrl="/_layouts/images/delitem.gif"
						AccessKey="X"/>
					<wssuc:ToolBarButton runat="server"
						id="idEditMembers_root"
						Text="<%$Resources:wss,user_idEditMembers%>"
						ToolTip="<%$Resources:wss,user_idEditMembers%>"
						NavigateUrl="javascript:EditRolesForSelectedUsers()"
						ImageUrl="/_layouts/images/edit.gif"
						AccessKey="I" />
				</Template_Buttons>
			</wssuc:ToolBar>
			<wssuc:ToolBar id="onetidGrpsTB1" runat="server"  Visible="false">
				<Template_Buttons>
					<wssuc:ToolBarButton runat="server" Text="<%$Resources:wss,user_idAddMembers%>"
						id="idAddMembers"
						ToolTip="<%$Resources:wss,user_idAddMembers%>"
						NavigateUrl="javascript:GrantAccess()" ImageUrl="/_layouts/images/newuser.gif"
						AccessKey="N" />
					<wssuc:ToolBarButton runat="server"
						id="idDelMembers"
						Text="<%$Resources:wss,user_idDelMembers%>"
						ToolTip="<%$Resources:wss,user_idDelMembers%>"
						NavigateUrl="javascript:deluser()"
						ImageUrl="/_layouts/images/delitem.gif"
						AccessKey="X"/>
					<wssuc:ToolBarButton runat="server"
						id="idEditMembers"
						Text="<%$Resources:wss,user_idEditMembers%>"
						ToolTip="<%$Resources:wss,user_idEditMembers%>"
						NavigateUrl="javascript:EditRolesForSelectedUsers()"
						ImageUrl="/_layouts/images/edit.gif"
						AccessKey="I" />
					<wssuc:ToolBarButton runat="server"
						id="idInheritPermissions"
						Text="<%$Resources:wss,user_idInheritPermissions%>"
						ToolTip="<%$Resources:wss,user_idInheritPermissions%>"
						NavigateUrl="javascript:inheritPerms()"
						ImageUrl="/_layouts/images/edit.gif"
						AccessKey="I" />
				</Template_Buttons>
			</wssuc:ToolBar>
			<wssuc:ToolBar id="onetidGrpsTB2" runat="server"  Visible="false">
				<Template_Buttons>
					<wssuc:ToolBarButton runat="server"
						id="idCopyPerm"
						Text="<%$Resources:wss,user_idToolbarCopyPerm%>"
						ToolTip="<%$Resources:wss,user_idToolbarCopyPerm%>"
						NavigateUrl="javascript:uniquePerms()"
						ImageUrl="/_layouts/images/edit.gif"
						AccessKey="C" />
				</Template_Buttons>
			</wssuc:ToolBar>
			</div>
		</TD>
	  </TR>
	  <TR>
		<TD>
<asp:ObjectDataSource id="UsersDS" runat="server"
	OnObjectCreating="UsersDS_ObjectCreating"
	TypeName="Microsoft.SharePoint.ApplicationPages.UserRolesDataSource,Microsoft.SharePoint.ApplicationPages,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c"
	SortParameterName="sortExpression"
	SelectMethod="ListUsers"/>
<SharePoint:SPGridView id="rptrUsers" runat="server"
	AutoGenerateColumns="false" width="100%" AllowSorting="True"
	DataSourceId="UsersDS"
	OnRowCreated="Users_RowCreated"
	>
<Columns>
	<asp:TemplateField HeaderStyle-CssClass="ms-vh2" ItemStyle-CssClass="ms-cbp" ItemStyle-VerticalAlign="Top">
	<HeaderTemplate>
		<% if (bShowCheckbox) { %>
			<INPUT style=" margin-top:-1px; margin-bottom:-1px;" type="checkbox" name=selectall onClick="SelectAll();" id="idSelectAll" title="<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,multipages_selectall%>' EncodeMethod='HtmlEncode'/>" >
		<% } %>
	</HeaderTemplate>
		<ItemTemplate>
<% if (bShowCheckbox) { %>
			<INPUT type="checkbox" name=PrincipalId class="padding-right: 15px;padding-top: 0px;padding-bottom: 0px"
				value="<%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, colID)) %>"
				 title="<%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, colFullName)) %>"
				 onClick="document.getElementById('idSelectAll').checked=false;" >
			<INPUT type="hidden"   name=PrincipalName
				value="<%# SPHttpUtility.UrlKeyValueEncode((string)DataBinder.Eval(Container.DataItem, colFullName)) %>" >
<% } %>
		</ItemTemplate>
	</asp:TemplateField>
	<asp:TemplateField HeaderStyle-CssClass="ms-vh2-nofilter" HeaderText="<%$Resources:wss,user_idHeadingUser%>" HeaderStyle-ForeColor="#808080" HeaderStyle-Width="20%"
		SortExpression="FullName">
		<ItemTemplate>
			<table cellpadding=0 cellspacing=0>
				<tr>
					<td>
			<%# DataBinder.Eval(Container.DataItem, colIMNControl) %>
					</td>
					<td width="3px">
						<IMG SRC="/_layouts/images/blank.gif" width=3 height=1 alt="">
					</td>
					<td style="padding-top:2px;" class="ms-vb">
<% if (bShowCheckbox) { %>
			<a href='editprms.aspx?obj=<%# SPHttpUtility.UrlKeyValueEncode(StrAclObj())%>&sel=<%# SPHttpUtility.NoEncode(DataBinder.Eval(Container.DataItem, colID)) %>'>
<% } %>
			<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, colFullName).ToString()) %>
<% if (bShowCheckbox) { %>
			</a>
<% } %>
					</td>
				</tr>
			</table>
		</ItemTemplate>
	</asp:TemplateField>
	<asp:TemplateField HeaderStyle-CssClass="ms-vh2-nofilter" HeaderText="<%$Resources:wss,user_idHeadingType%>" HeaderStyle-ForeColor="#808080" HeaderStyle-Width="10%"
		SortExpression="PrincipalType">
		<ItemTemplate>
			<INPUT type="hidden"   name=PrincipalType  value='<%# SPHttpUtility.UrlKeyValueEncode((string)DataBinder.Eval(Container.DataItem, colPrincipalType)) %>' >
			<%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, colType).ToString()) %><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt="">
		</ItemTemplate>
	</asp:TemplateField>
	<asp:TemplateField HeaderStyle-CssClass="ms-vh2-nofilter" HeaderText="<%$Resources:wss,user_idHeadingUserName%>" HeaderStyle-ForeColor="#808080" HeaderStyle-Width="20%"
		SortExpression="UserName">
		<ItemTemplate>
			<%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, colUserName).ToString()) %>
		</ItemTemplate>
	</asp:TemplateField>
	<asp:TemplateField HeaderStyle-CssClass="ms-vh2-nofilter" HeaderText="<%$Resources:wss,user_idHeadingRole%>" HeaderStyle-ForeColor="#808080" HeaderStyle-Width="50%"
		SortExpression="UserRoles">
		<ItemTemplate>
			<%# SPHttpUtility.HtmlEncode((string)DataBinder.Eval(Container.DataItem, colUserRoles).ToString()) %>
		</ItemTemplate>
	</asp:TemplateField>
</Columns>
</SharePoint:SPGridView>
		</TD>
	  </TR>
	  <TR><TD><IMG SRC="/_layouts/images/blank.gif" width=1 height=30 alt=""></TD></TR>
	</table>
	<SharePoint:FormDigest runat=server/>
	<input type="hidden" name="hdngroupsToDelete" id="hdnPrincipalsToDelete" value="" runat=server>
	<input type="hidden" name="hdnOperation" id="hdnOperation" value="" runat=server>
</asp:Content>
